#!/bin/sh

# Clear old compiled classes and replace the source tree
echo Copying new classes..
rm -rf ./bin/*
cp --recursive org bin
cp ./default.conf bin

# remove .java files from the directory
echo Removing source files...
rm `find ./bin/org -name *.java`

# remove any residual version control files
# (if the tree was obtained from version control)
echo Removing version control files...
rm -rf `find -L ./bin | grep .svn`
